/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 交货单列表查询
export const getDeliverOrderList = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/queryDeliverOrderList`, params)
// 货运单列表查询
export const getShipmentOrderList = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/queryShipmentOrderList`, params)
// 根据id查询货运单以及交货单明细
export const queryShipmentOrderById = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/queryShipmentOrderById`, params)
//生成货运单
export const createShipmentOrder = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/createShipmentOrder`, params)
//删除货运单
export const deleteShipmentOrder = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/deleteShipmentOrderById`, params)
//批量发运货运单
export const passShipmentOrder = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/passShipmentOrder`, params)


// 导出
export const exportList = (params) => axios.post(`${SERVER.WHOLESALES}/TtVsShipmentOrder/exportDeliverOrder`, params, { responseType: 'blob' })
